﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master Resources/XLMaster.Master"
    AutoEventWireup="true" CodeBehind="AddAccount.aspx.cs" Inherits="XclusiveClient.AddAccount" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
    <h1 style="text-align: center">
        Create An Employee Account</h1>
    <br />
    <div id="wrapper-v2" style="margin-left: 50px">
        <table style="margin-left: 175px">
            <tr>
                <td style="text-align: right">
                    Employee ID:
                </td>
                <td style="text-align: left">
                    #<asp:Label ID="lblemployeeID" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    <asp:Label ID="name" runat="server" Text="Name"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="tbxname" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    Company Name:
                </td>
                <td style="text-align: left">
                    <asp:Label ID="lblcompany_name" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    <asp:Label ID="password" runat="server" Text="Password"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="tbxpassword" runat="server" TextMode="Password"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxpassword"
                    ErrorMessage="Please enter password" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
                    ControlToValidate="tbxpassword" ErrorMessage="Invalid password, must contain at least a number"
                    ValidationExpression="(^([\d][\w]*)$)|(^([\w]*[\d][\w]*)$)|(^([\w]*[\d])$)" ForeColor="Red"
                    Display="Dynamic"></asp:RegularExpressionValidator>
                &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator4" ControlToValidate="tbxpassword"
                    runat="server" ErrorMessage="Invalid password, must be at least 7 alphanumeric long and no spaces, special characters allowed"
                    ValidationExpression="^[a-zA-Z0-9]{7,99}$" ForeColor="Red" Display="Dynamic"></asp:RegularExpressionValidator>
            </tr>
            <tr>
                <td style="text-align: right">
                    <asp:Label ID="password_confirm" runat="server" Text="Confirm Password"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="tbxpassword_confirm" runat="server" TextMode="Password"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="tbxpassword_confirm"
                    ErrorMessage="Please enter password" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                &nbsp;<asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Different password type in, Please retype"
                    ControlToCompare="tbxpassword" ControlToValidate="tbxpassword_confirm" ForeColor="Red"
                    Display="Dynamic"></asp:CompareValidator>
            </tr>
            <tr>
                <td style="text-align: right">
                    Account Type:
                </td>
                <td style="text-align: left">
                    <asp:Label ID="lblaccount_type" runat="server" Text="Basic"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="150px">
                </td>
                <td>
                    <asp:Button ID="btnCreateEmployee" runat="server" Text="Create" OnClick="btnCreateEmployee_Click" />
                    <br />
                </td>
            </tr>
        </table>
        <div style="text-align: center">
            <asp:Label ID="lblStatus" runat="server" Visible="false"></asp:Label>
        </div>
    </div>
</asp:Content>
